const state = {
  principal: 50,
  income: 0.02
}
const mutations = {
  SET_PRINCIPAL: (state, principal) => {
    state.principal = principal
  },
  SET_INCOME: (state, income) => {
    state.income = income
  }
}
const actions = {
  setPrincipal ({ commit }, principal) {
    commit('SET_PRINCIPAL', principal)
  },
  setIncom ({ commit }, income) {
    commit('SET_INCOME', income)
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
